package com.lz.yz.reward.dao;

import com.lz.yz.core.Mapper;
import com.lz.yz.reward.bean.RewardBean;
import com.lz.yz.reward.entity.Reward;
import com.lz.yz.reward.param.RewardParam;

import java.util.List;

public interface RewardMapper extends Mapper<Reward> {

    /**
     * 获取一周以内get类型订单总额
     * @return
     */
    List<RewardBean> queryGetOrderPrice(RewardParam param);

    /**
     * 获取某一个悬赏中每个众筹人的百分比
     * @return
     */
    List<RewardBean> queryGetOrderPercentage(RewardParam param);

    /**
     * 获取满足自动完成任务条件的悬赏
     * @return
     */
    List<RewardBean> queryAnswerByDate(RewardParam param);

    /**
     * 获取规定时间内没找到大咖的悬赏
     * @return
     */
    List<RewardBean> queryNotFoundReward(RewardParam param);

    /**
     * 获取规定时间内没找到大咖对应的众筹订单
     * @return
     */
    List<RewardBean> queryNotFoundRewardOrder(RewardParam param);


    /**
     * 找大咖分享页展示信息
     * @return
     */

    RewardBean queryRewardSharePage(RewardParam param);


    /**
     * 悬赏列表
     */
    List<RewardBean> queryRewards(RewardParam param);

    /**
     * 悬赏详情
     */
    RewardBean getReward(RewardParam param);
}